package com.candy.candycommon.Event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/6/5 14:16
 * @Description 描述
 */
@Getter
@Setter
public class ExceptionEvent extends ApplicationEvent {

    private Object data;

    public ExceptionEvent(Object source, Object data) {
        super(source);
        this.data = data;
    }

    public static class SendExceptionEvent extends ExceptionEvent {

        public SendExceptionEvent(Object source, Object data) {
            super(source, data);
        }

    }

}
